import React from 'react';
import { BrowserRouter as Router, Route, Link } from 'react-router-dom'
import routes from './router';

function App() {

  return (
    <Router>
      {
        routes.map(route => <Route path={route.path} component={route.component} key={route.component + route.path} exact></Route>)
      }
    </Router>
  )
}

export default App
